package com.usain.feign;

import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "feign-provider")
public interface UserFeign {
    @RequestMapping("/findById")
    public User findById(@PathVariable Integer userId);
}
